package com.hq.fxh.Modle;

import java.util.List;

/**
 * /**
 *
 * @author 薛
 * @ClassName
 * @Description :
 * @Created 2017/9/30
 * @Email xlwenhao1858@sina.com
 */


public class GetAutoNewsHomeModle {

    /**
     * code : 0
     * msg : succ
     * data : {"banners":[{"advert_id":528,"advert_cost_type":1,"title":"趣臣食品 好吃又实惠","pic":"http://imgs.ledianduo.com/ad/Compress/2017/4/583e29e9-0093-4824-b57e-f61147eff598.jpg","href":"http://shop161227102513952778.wfenxiao.com.cn","is_download":0}],"block":[{"name":"房产","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"fangchan"},{"name":"汽车","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"qiche"},{"name":"招聘","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"zhaopin"},{"name":"二手","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"ershou"},{"name":"家政","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"jiazheng"},{"name":"餐饮","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"canyin"},{"name":"娱乐","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"yule"},{"name":"更多","img":"http://imgs.ledianduo.com/category/yishu.png","url":null,"action":"more"}],"news":[]}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<BannersBean> banners;
        private List<BlockBean> block;
        private List<AutoNewsModle> news;

        public List<BannersBean> getBanners() {
            return banners;
        }

        public void setBanners(List<BannersBean> banners) {
            this.banners = banners;
        }

        public List<BlockBean> getBlock() {
            return block;
        }

        public void setBlock(List<BlockBean> block) {
            this.block = block;
        }

        public List<AutoNewsModle> getNews() {
            return news;
        }

        public void setNews(List<AutoNewsModle> news) {
            this.news = news;
        }

        public static class BannersBean {
            /**
             * advert_id : 528
             * advert_cost_type : 1
             * title : 趣臣食品 好吃又实惠
             * pic : http://imgs.ledianduo.com/ad/Compress/2017/4/583e29e9-0093-4824-b57e-f61147eff598.jpg
             * href : http://shop161227102513952778.wfenxiao.com.cn
             * is_download : 0
             */

            private int advert_id;
            private int advert_cost_type;
            private String title;
            private String pic;
            private String href;
            private int is_download;

            @Override
            public String toString() {
                return "BannersBean{" +
                        "advert_id=" + advert_id +
                        ", advert_cost_type=" + advert_cost_type +
                        ", title='" + title + '\'' +
                        ", pic='" + pic + '\'' +
                        ", href='" + href + '\'' +
                        ", is_download=" + is_download +
                        '}';
            }

            public int getAdvert_id() {
                return advert_id;
            }

            public void setAdvert_id(int advert_id) {
                this.advert_id = advert_id;
            }

            public int getAdvert_cost_type() {
                return advert_cost_type;
            }

            public void setAdvert_cost_type(int advert_cost_type) {
                this.advert_cost_type = advert_cost_type;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getHref() {
                return href;
            }

            public void setHref(String href) {
                this.href = href;
            }

            public int getIs_download() {
                return is_download;
            }

            public void setIs_download(int is_download) {
                this.is_download = is_download;
            }
        }

        public static class BlockBean {
            /**
             * name : 房产
             * img : http://imgs.ledianduo.com/category/yishu.png
             * url : null
             * action : fangchan
             */

            private String name;
            private String img;
            private Object url;
            private String action;

            @Override
            public String toString() {
                return "BlockBean{" +
                        "name='" + name + '\'' +
                        ", img='" + img + '\'' +
                        ", url=" + url +
                        ", action='" + action + '\'' +
                        '}';
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }

            public Object getUrl() {
                return url;
            }

            public void setUrl(Object url) {
                this.url = url;
            }

            public String getAction() {
                return action;
            }

            public void setAction(String action) {
                this.action = action;
            }
        }
    }
}
